package com.love.marriage.TecentIm.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.love.marriage.common.vo.BaseVo;
import com.love.marriage.config.Long2StringSerializer;
import com.love.marriage.userInfo.vo.UserVo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * description:  CharEachHistoryVo
 * author:       mybatisPlus
 * createDate:   2024-10-17 21:19:44
 * version:      1.0.0
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(name = "CharEachHistoryVo", description = "互相聊天记录")
public class ChatEachHistoryVo extends BaseVo<ChatEachHistoryVo>{

    @JsonSerialize(using = Long2StringSerializer.class)
    @Schema(description = "操作用户id", type = "Long", implementation = Long.class)
    private Long operatorUserId;

    @Schema(description = "操作用户信息", implementation = UserVo.class)
    private UserVo operatorUser;

    @JsonSerialize(using = Long2StringSerializer.class)
    @Schema(description = "发送用户id", type = "Long", implementation = Long.class)
    private Long peerUserId;

    @Schema(description = "发送用户信息", implementation = UserVo.class)
    private UserVo peerUser;

    @Schema(description = "消息内容", type = "String", implementation = String.class)
    private String message;
}
